﻿@model smp.ButterflyCakes.Models.FormModels.Order.ComponentQuantityModel

<div class="container">
    <div class="container-fluid">
        @if (ViewBag.Error != null)
        {
            <div class="alert alert-block alert-error">
                <p>@ViewBag.Error</p>
            </div>
        }
        @Html.ValidationSummary(true)
    </div>
    <form class="form-horizontal" id="editform" url="/order/savecakequantity">
        @Html.HiddenFor(x => x.OrderId)
        @Html.HiddenFor(x => x.ComponentId)
        <div class="control-group">
            <label class="control-label" for="Quantity">
                Quantity</label>
            <div class="controls">
                <input class="span4 intspinner" type="text" id="Quantity" name="Quantity" placeholder="Enter a title" value="@Model.Quantity"/>
                @Html.ValidationMessageFor(x => x.Quantity)
            </div>
        </div>
    </form>
    <div class="form-actions">
        <button id="save" type="submit" class="btn btn-success">
            Next
        </button>
        <button id="cancel" type="submit" class="btn btn-danger hide">
            Cancel
        </button>
    </div>
</div>